Skip to content

Fix viewability for zero-sized lists - #58000

Closed
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116356139
Closed

Fix viewability for zero-sized lists#58000
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D116356139

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.

Changelog:
[General][Fixed] - Prevent zero-sized lists from reporting viewable items

Differential Revision: D116356139

Summary:
VirtualizedList viewability only considered the scroll-axis viewport length. A horizontal list with zero height could therefore report items as viewable. Record the cross-axis length in the same scroll metrics snapshot and require both viewport dimensions to be non-zero for viewability.

Changelog:
[General][Fixed] - Prevent zero-sized lists from reporting viewable items

Differential Revision: D116356139
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 18, 2026
@meta-codesync

meta-codesync Bot commented Aug 18, 2026

Copy link
Copy Markdown

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116356139.

@meta-codesync meta-codesync Bot closed this in 57c8285 Aug 19, 2026
@meta-codesync meta-codesync Bot added the Merged This PR has been merged. label Aug 19, 2026
@meta-codesync

meta-codesync Bot commented Aug 19, 2026

Copy link
Copy Markdown

This pull request has been merged in 57c8285.

@facebook-github-tools

Copy link
Copy Markdown

This pull request has been reverted by 6c4cf29.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant